﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TVersityDotNet.HelperTypes
{
    public enum StatusTranscodeStatus
    {
        // TODO: Find out what the non-active status is called
        Active, NotActive
    }

    public class StatusTranscode
    {
        public Uri Url { get; set; }
        public string Title { get; set; }
        public string SourceMimeType { get; set; }
        public string SourceFormat { get; set; }
        public string TargetMimeType { get; set; }
        public string TargetFormat { get; set; }
        public StatusTranscodeStatus TranscodeStatus { get; set; }
        public int Size { get; set; }
        public int Progress { get; set; }
        public int ProgressPercent
        {
            get
            {
                if (this.Size != 0)
                    return (this.Progress / this.Size) * 100;
                else
                    return 0;
            }
        }

        public StatusTranscode() { }
    }
}
